package com.shrct.businessprocess.project;

import com.shrct.businessprocess.project.RCProjectStatCriteriaData;
import edu.fudan.mylang.pf.query.BaseStatCriteria;
import java.util.Collection;

public class RCProjectStatCriteria extends BaseStatCriteria<RCProjectStatCriteriaData> {
  public void initOrderBys() {
    
  }
  
  public Collection<RCProjectStatCriteriaData> list() {
    criteria.postInitialize();
    initOrderBys();
    String aggrCriteria = " select new com.shrct.businessprocess.project.RCProjectStatCriteriaData(sum(this.stat.contractPrice.amount),sum(this.stat.cbdSummaryInfo.netPriceAmount),sum(this.stat.cbdSummaryInfo.grossProfit),sum(this.stat.grossProfitGGP),sum(this.stat.grossProfit4SalesGGP),count(*))"
    		+ criteria.getHQLFrom() + " " + criteria.getHQLBodyWithActiveCondition();
    org.hibernate.Query query = entities.createQuery(aggrCriteria);
    criteria.fillParameters(query);
    return doList(query);
    
  }
}
